How to use Countif and Sum function together in excel